package lumis.portal.principal.importprincipal;

import java.util.Date;

/**
 * Value Object that holds the config values of a Reading.
 * 
 *
 * @version $Revision: 13092 $ $Date: 2011-05-28 18:19:06 -0300 (Sat, 28 May 2011) $
 * @since 4.0.8
 */
public class PrincipalReaderConfig
{
	private String id;
	private String origin;
	private String configFile;
	private String outputFile;
	private boolean schedule;
	private Date lastRun;
	
	/**
	 * Get the option of automatic execution.
	 * 
	 * @return whether the automatic execution is enabled.
	 * @since 6.0.0
	 */
	public boolean isSchedule()
	{
		return schedule;
	}

	/**
	 * Set the option of automatic execution.
	 * 
	 * @param schedule whether the automatic execution is enabled.
	 * @since 6.0.0
	 */
	public void setSchedule(boolean schedule)
	{
		this.schedule = schedule;
	}
	
	/**
	 * Get config file path
	 * @return
	 * @since 4.0.8
	 */
	public String getConfigFile()
	{
		return configFile;
	}
	
	/**
	 * Set config file path
	 * @param configFile
	 * @since 4.0.8
	 */
	public void setConfigFile(String configFile)
	{
		this.configFile = configFile;
	}
	/**
	 * Get id
	 * @return
	 * @since 4.0.8
	 */
	public String getId()
	{
		return id;
	}
	/**
	 * Set id
	 * @param id
	 * @since 4.0.8
	 */
	public void setId(String id)
	{
		this.id = id;
	}
	/**
	 * Get date of last execution
	 * @return
	 * @since 4.0.8
	 */
	public Date getLastRun()
	{
		return lastRun;
	}
	/**
	 * Set  date of last execution
	 * @param lastRun
	 * @since 4.0.8
	 */
	public void setLastRun(Date lastRun)
	{
		this.lastRun = lastRun;
	}
	/**
	 * Get the origin
	 * @return
	 * @since 4.0.8
	 */
	public String getOrigin()
	{
		return origin;
	}
	/**
	 * Set Origin
	 * @param origin
	 * @since 4.0.8
	 */
	public void setOrigin(String origin)
	{
		this.origin = origin;
	}
	/**
	 * Get the output file path
	 * @return
	 * @since 4.0.8
	 */
	public String getOutputFile()
	{
		return outputFile;
	}
	/**
	 * Set the output file path
	 * @param outputFile
	 * @since 4.0.8
	 */
	public void setOutputFile(String outputFile)
	{
		this.outputFile = outputFile;
	}
	
	
}
